﻿<Window 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Mooville.QUno"
    x:Class="Mooville.QUno.WildColorWindow"
    Title="Choose Wild Color"
    Width="320" Height="240"
    ResizeMode="NoResize" ShowInTaskbar="False" SnapsToDevicePixels="True" WindowStartupLocation="CenterOwner">
    <Grid Margin="8">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Label Content="_Wild color:" Target="{Binding ElementName=listColors}" Grid.Row="0" Grid.Column="0"/>
        <ListBox Name="listColors" ItemsSource="{Binding Path=Colors}" SelectedItem="{Binding Path=SelectedColor}" SelectionMode="Single" IsSynchronizedWithCurrentItem="True" TabIndex="0" Grid.Row="1" Grid.Column="0"/>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0" Grid.Row="2" Grid.Column="0">
            <Button Name="buttonOk" Content="OK" IsDefault="True" Width="75" Height="23" Margin="0,0,8,0" TabIndex="1"/>
            <Button Content="Cancel" IsCancel="True" Width="75" Height="23" TabIndex="2"/>
        </StackPanel>
    </Grid>
</Window>
